<?
		echo CHtml::link($item['title'],Yii::app()->createurl('item/index', array('id' => $item['id'])));

		echo ' X ';
		
		echo CHtml::form(Yii::app()->request->hostInfo.'/cart/update','POST');
		echo CHtml::hiddenField('id', base64_encode($item->id));
		echo CHtml::hiddenField('action', base64_encode('add'));
		echo CHtml::hiddenField('fullPath', base64_encode(yiistoAbsolutePath()));
		echo CHtml::ajaxSubmitButton ("+",CController::createUrl('cart/update'),
			array(
                    'success' => 'function(data){
                        $("#cart").load("'.Yii::app()->request->hostInfo.'/cart/getWidget");
                        $("#content").load("cart/index");
                    }',
			),
			array(
				'id' => 'add_'.$item->id,
			)
		);
		echo CHtml::endForm();

		echo CHtml::form(Yii::app()->request->hostInfo.'/cart/update','POST');
		echo CHtml::hiddenField('id', base64_encode($item->id));
		echo CHtml::hiddenField('action', base64_encode('decrement'));
		echo CHtml::hiddenField('fullPath', base64_encode(yiistoAbsolutePath()));
		echo CHtml::ajaxSubmitButton ("-",CController::createUrl('cart/update'),
			array(
                    'success' => 'function(data){
                        $("#cart").load("'.Yii::app()->request->hostInfo.'/cart/getWidget");
                        $("#content").load("cart/index");
                    }',
			),
			array(
				'id' => 'decrement_'.$item->id,
			)
		);
		echo CHtml::endForm();

		echo $item->getQuantity();

		echo ' шт';
		echo ' X '.$item->getPrice();
		echo ' == '.$item->getSumPrice();

		echo CHtml::form(Yii::app()->request->hostInfo.'/cart/update','POST');
		echo CHtml::hiddenField('id', base64_encode($item->id));
		echo CHtml::hiddenField('action', base64_encode('remove'));
		echo CHtml::hiddenField('fullPath', base64_encode(yiistoAbsolutePath()));
		echo CHtml::ajaxSubmitButton ("X",CController::createUrl('cart/update'),
			array(
                    'success' => 'function(data){
                        $("#cart").load("'.Yii::app()->request->hostInfo.'/cart/getWidget");
                        $("#content").load("cart/index");
                    }',
			),
			array(
				'id' => 'decrement_'.$item->id,
			)
		);
		echo CHtml::endForm();
		echo "<br/>";
?>